vertical center for gallery and pages