add media queries for dynamicgrid