Optimise media queries