fix photo gallery.