graph resizes on window resize