updating gallery pages for galleries