Fixed a few bugs in the slider class. Marks a new version: 1.031