Fixes and simplifications for tiled galleries