Constrain gallerypage contents to image and file