added timeout to resize event handler