added position on window resize event