Added masonry and pins fuctionality