"Doesn't work like I want" doesn't work like we need.
What, exactly, are you trying to accomplish?
You only need to create one mask. Key modifiers will allow you to draw a perfectly proportional rectangle. Once you have one mask, you can copy and paste it to the other layers and reposition it.
I see you are attempting to create some kind of movie from your captured game. After Effects would not be the best choice for your creation because of the complexity and endless options at your displosal which terribly complicate what appears to be a basic project. There seem to be multiple view combining apps made specfically for your needs for specific capture codecs and output formats but I've never used any of them. Probably easily researched on gaming forums.
Thanks, it works perfectly!
Yes, I know, but using game engine it's fun and a great way to learn, also, the awesome effects are atractive for want to learn.
I did it as you say, here is the result using a trailer from a game:
There was a little problem with the resolution because it doesn't work well when I download the videos from YouTube.