Added limits for slide panning.