Prevent divider be beyond screen after toggling split orientation.