   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

      collectionViewLayout: self.collectionViewLayout)

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

  var images = [String]()
  var collectionSize = CGSizeZero
  var pageLabelBottom: NSLayoutConstraint?
  var collectionViewHeight: NSLayoutConstraint?
  var collectionViewWidth: NSLayoutConstraint?
  var physics = false
