added scroll direction and previous slide index to callbacks