updated fotorama, fixed some bugs with gallery