BMG-634 - Improve configuration of layouts for galleries.