fixes to masonry layout