Slider: Accessibility - Code-Style Corrected
According to notes of tjvantoll, changed Code-Style
Slider: Accessibility - Adding Testcases

Testcases added for changes to support accessibility

Fixes #4739