added support for gallery and photos using Pure’s Gallery layout