Update view.gallery.php