The overlay environment is exactly the same as the slide environment except for how the page is numbered. The first overlay following slide number 9 is numbered "9a", the second one is numbered "9b", and so forth. To make an overlay that perfectly overlays a slide, the slide and the overlay should be absolutely identical except that text visible in one should be invisible in the other.