Cleaning up when browser is resized.