Added masonry and dynamic grid layout