Make media queries less glitchy