added support for bootstrap gallery