Slider: Reset positioning when orientation changes

Fixes #10105
Closes gh-1268