Slider: Set/unset class "ui-state-disabled" in sync with disabled option

Fixes gh-6857