         
         switch differenceInTouchXAxis {
         case let x where x < -100:
-            showViewWithIndex(currentViewIndex+1 >= views!.count ? currentViewIndex : currentViewIndex + 1, setCurrentPage: true)
+            showViewWithIndex(currentViewIndex + 1 >= views!.count ? currentViewIndex : currentViewIndex + 1, setCurrentPage: true)
         case let x where x > 100:
             showViewWithIndex(currentViewIndex < 1 ? currentViewIndex : currentViewIndex - 1, setCurrentPage: true)
         default:

                    width: self.background.layer.frame.width,
                    height: self.background.layer.frame.height)
            }
            self.background.layer.frame = CGRect(x: self.backgroundLayerFrameOrigin!.x + (CGFloat(differenceInTouchXAxis) / self.frame.width) * CGFloat(self.offsetPerPage), y: 0.0, width: self.background.layer.frame.width, height: self.background.layer.frame.height)
        }
    }
    

        
        let duration = (index == currentViewIndex) ? 0.3 : 0.2
        UIView.animateWithDuration(duration) {
            self.background.layer.frame = CGRect(x: self.backgroundLayerFrameOrigin!.x,
                y: 0.0,
                width: self.background.layer.frame.width,
                height: self.background.layer.frame.height)
        }
        
        // Views
