Slider: Add classes option

Fixes gh-7716