fixing the display of photoset grids in the theme