Added default values for animation

Added default values for animation, and can now all 4 values can be
defined when calling slidePage function