made changes to gallery_page