gallery.php fixin