js: implement slider functionality (in style guide) #tmp