adding support for gallery setup