Refactoring slider

What has been done:

* refactoring slider.js
* to add unit tests
* to make doc
* remove unused `theme` prop (for a while maybe)
* fix handler text's width bug in FF