set resizing to happen on a timeout so it doesnt slow the browser when rapidly resizing