Please describe the physical loading you are trying to achieve.

What causes the ends of the rectangles to be fixed?

What causes the entire top edge to move up in a perfectly rigid way? This condition don't sound physically realizable.

Frictional contact allows surfaces to separate, and prevents penetration so the result you show is exactly what you programmed into the model.