fix duration on swipe