More changes for gallery