photogallery + delete js