change scale on window resize