fix slide animation bug. (when duration is set to zero.)

This is for https://github.com/bradbirdsall/Swipe/issues/440