   public override func viewDidLoad() {
     super.viewDidLoad()
 
-    collectionSize = CGSizeMake(view.frame.height, view.frame.width)
+    collectionSize = CGSizeMake(view.frame.width, view.frame.height)
     [collectionView, pageLabel, closeButton].map { self.view.addSubview($0) }
 
     //transitioningDelegate = transitionManager


    if UIDevice.currentDevice().orientation == UIDeviceOrientation.LandscapeLeft
      || UIDevice.currentDevice().orientation == UIDeviceOrientation.LandscapeRight {
        //deviceDidRotate()
    }
  }


      collectionViewLayout: self.collectionViewLayout)

    collectionView.setTranslatesAutoresizingMaskIntoConstraints(false)
    collectionView.backgroundColor = .blackColor()
    collectionView.dataSource = self
    collectionView.delegate = self
    collectionView.decelerationRate = UIScrollViewDecelerationRateFast
