add styling to masonry layout