cleaned up slider

tidy up codes, mark-up,
added and tested variations