For each frame you select the layer that you want visible.
In the animation window, click on the frame that you want to modify and then look at the layer window and check the layer that you want to be visible on that frame.
If you select multiple layers for a single frame, the top layer will be the only one visible.