debounce the window resize event