     guard let cell = collectionView.cellForItemAtIndexPath(indexPath) as? DemoCollectionViewCell
           where currentIndex == indexPath.row else { return }
 
-    print(collectionView.contentOffset.x)
     if cell.isOpened == false {
       cell.cellIsOpen(true)
     } else {

  
  func scrollViewDidScroll(scrollView: UIScrollView) {
    pageLabel.text = "\(currentIndex+1)/\(items.count)"
    print(collectionView?.contentOffset.x)
  }
}


  func swipeHandler(sender: UISwipeGestureRecognizer) {
    let indexPath = NSIndexPath(forRow: currentIndex, inSection: 0)
    guard let cell  = collectionView?.cellForItemAtIndexPath(indexPath) as? DemoCollectionViewCell else { return }
    // double swipe Up transition
    if cell.isOpened == true && sender.direction == .Up {
      pushToViewController(getViewController())
