fix masonry layout so it renders correctly on EVERY page load