Save slider in localstorage