Array with point on curve

I want to create moving panels that cover a certain area. I was thinking I could do so with point on curve followed by an array of multiple red rectangles (see photo). I can’t figure out how to 1) have the rectangles orient to the curve / bend along each corner and 2) array after using point on curve. I’d like this to be parametric to where all I have to do is change the point on curve to allow for the panels to move in unison. I would appreciate any help with this!