Build the template
Grab the Move tool, hold Alt and drag the frame to make a copy, then reposition it beside the first. Click the edge of the box to change the width. Make it vertical, square or any other ratio you like. Continue alt-dragging and repositioning to build up the template as shown.