Photogallery view fix