         self.prevView = self.currentView
         self.currentView = oldNextView
         
-        UIView.animate(withDuration: 0.3, animations: {
+        UIView.animate(withDuration: withDuration, animations: {
             self.prevView.frame = self.bounds.offsetBy(dx: -self.bounds.size.width, dy: 0)
         }) { completed in
             if completed {

        }
    }
    
    func movePreviousViewToCurrentView() {
        delegate?.didChangePreviousViewToCurrentView()
        
        let oldCurrentView = self.currentView

        self.nextView = oldCurrentView
        
        self.bringSubviewToFront(self.currentView!)
        UIView.animate(withDuration: withDuration, animations: {
            self.currentView.frame = self.bounds
        }) { completed in
            if completed {
