   fileprivate func animateBottomButtons() {
     var maxY = collectionView.frame.maxY
     let insets = config.sideInsets
-    let buttonHeight = config.buttonsFontSize * 1.2
+    let buttonHeight = config.buttonsFont.pointSize * 1.2
     var topFrame = CGRect(x: insets.left, y: 0, width: bounds.width - insets.left - insets.right, height: buttonHeight)
     for button in bottomViews {
       button.transform = scaledTransform

    var delay: Double = 0
    if animationInProcess {
      delay = duration / 3.5
      if let layer = self.newRightSideLayer {
        layer.removeFromSuperlayer()
        self.newRightSideLayer = nil
        newRightSideSnapshot?.removeFromSuperview()
        newRightSideSnapshot = nil
//        self.layer.addSublayer(layer)
//        
//        var position = layer.presentation()?.position ?? CGPoint(x: cellFrame.maxX + space, y: 0)
//        position.y = cellFrame.minY
//        layer.position = position
//        let oldRightSideNewPosition = CGPoint(x: bounds.width, y: cellFrame.minY)
//        let oldRightSideNewValue = AnimationValue.position(oldRightSideNewPosition)
//        animate(layer, newValue: oldRightSideNewValue, item: AnimationItem.oldRightSide, duration: duration * 1.5, delay: 0, index: -1)
        
        if let aniLayer = getAnilayer(of: AnimationItem.newCellWrapper, at: expandedItemIndex) {
          aniLayer.layer.removeFromSuperlayer()
        }
      }
      
      lastExpandedItemIndex = expandedItemIndex

  
  fileprivate var lastExpandedItemIndex = 0
  fileprivate var animationInProcess = false
  fileprivate var animationViewsDictionary: [String: AniView] = [:]
  fileprivate var topOverlayGradient = CAGradientLayer()
  fileprivate var bottomOverlayGradient = CAGradientLayer()
  fileprivate var topViews: [UIButton] = []
