Add debouncing to the window resize event handler