adds resize listener for overlay