Resize listener to call functions based on window size