You put the glue on the surface and let it dry, and lay thin pieces of wood across it. Put the glue on the formica, let it dry, and lay it on top of the shims. The shims have no glue, so don't stick. Line the formica up, on top of the shims, and one by one take the shims out and let the formica stick to the surface.
I've seen it done on those "home improvement"-type TV shows. :-)
Cheers! Rich