Added vertical mode. Created function generateSlider() to convert inputs to sliders after page has loaded.