call resizing functions on window.resize