changed the timeout for the resize func