making sure masonry does a proper layout on page load