changes for gallery