add media queries for masonry layout