added masonry and updated gallery template