         let currentPage = (velocity.y < 0.0) ? floor(approximatePage) : ceil(approximatePage)
         
         // Create custom flickVelocity.
-        let flickVelocity = velocity.y * 0.3
+        let flickVelocity = velocity.y * 0.4
         
         // Check how many pages the user flicked, if <= 1 then flickedPages should return 0.
         let flickedPages = (abs(round(flickVelocity)) <= 1) ? 0 : round(flickVelocity)
         
         // Calculate newVerticalOffset.
         let newVerticalOffset = ((currentPage + flickedPages) * pageHeight) - self.collectionView!.contentInset.top
-
+        
         return CGPoint(x: proposedContentOffset.x, y: newVerticalOffset)
     }
     
     internal override func finalLayoutAttributesForDisappearingItem(at itemIndexPath: IndexPath) -> UICollectionViewLayoutAttributes? {
-
+        
         // make sure the zIndex of the next card is higher than the one we're swiping away.
         let nextIndexPath = IndexPath(row: itemIndexPath.row + 1, section: itemIndexPath.section)
         let nextAttr = self.layoutAttributesForItem(at: nextIndexPath)
         nextAttr?.zIndex = nextIndexPath.row
-
+        
         // attributes for swiping card away
         let attr = self.layoutAttributesForItem(at: itemIndexPath)
         

        
        // Page height used for estimating and calculating paging.
        let pageHeight = cellHeight + self.minimumLineSpacing

        // Make an estimation of the current page position.
        let approximatePage = self.collectionView!.contentOffset.y/pageHeight
        

    }
    
    internal override func layoutAttributesForElements(in rect: CGRect) -> [UICollectionViewLayoutAttributes]? {
        let items = NSMutableArray (array: super.layoutAttributesForElements(in: rect)!, copyItems: true)
        
        items.enumerateObjects(using: { (object, index, stop) -> Void in
            let attributes = object as! UICollectionViewLayoutAttributes
            
            self.updateCellAttributes(attributes)
        })
        
        return items as? [UICollectionViewLayoutAttributes]
    }
    
