added flatGallery format