Adds event listener for window re-size