Add the basic functionality of scroll left or right
Method Refactored
combine the function of slide and randomization