Moving the box on window resize works