Listen to resize event instead of orientationchange