added option to txtGallery