moved initial setting of slider value to angularjs