Animate slider on load

Animates the slider to the default pct offset on load. Clean up
animation code to one function