Add positioning for gallery pages.