sets initial value for slider on page load
forgot the file