Fixing bug where non-array slide distances were being ignored completely inside of slideToPage