added scroll function in order to move slide