Add optional major and minor ticks to the slider

It adds the option to display major and minor tick marks on the slider. Tested with vertical and horizontal. It also adds the docs for it.

I have a feeling this could have been accomplished with a lot less code, but I'm not sure how. Anyway, do you think height of the ticks look ok?