Fixed bug with opening thumbs in FGallery