fixed GalleryPage while width changes