changed gallery_mode property