Call resize function on window resize