Implementing masonry for listing pages