add masonry and images loaded functionality