Multiple Masks

I have a graphic which i’m trying to reveal with multiple masks. The image is one layer and i have a mask layer with one rectangle moving right to left and revealing the image below. I want more rectangles revealing more parts of the image from other angles. But when i try to put it in the mask layer it just all clumps together.

How do i do this?

Thanks.