Added adjustable slidingDuration