     }
     var xOffsets = [CGFloat]()
     var yOffsets = [CGFloat]()
+    var shrinkParam = CGFloat(10)
     
+    //MARK:- UICollectionViewLayout functions
     override func prepare() {
     
          xOffsets = [CGFloat]()

    
    }
    

}

                let isFirstCellInCollection = indexPath.section == 0 && indexPath.row == 0
                var frame : CGRect?
                if isFirstCellInCollection {
                    frame = createFirstShrinkableCellRect()
                } else {
                    frame = createStackedCellRectFrom(indexPath)
                }
                let insetFrame = frame!.insetBy(dx: cellPadding, dy: cellPadding)
                let attr = UICollectionViewLayoutAttributes(forCellWith: indexPath as IndexPath)
                
                attr.frame = insetFrame
                attr.transform3D = CATransform3DMakeScale(1.0, 1.0, 1.0)
                attr.zIndex = zIndex
