improve slide animation to demonstrate independent/dependent variables used in piecewise functions