     var currentIndex: Int
     var previousIndex: Int
     private var isHeaderFooterHidden = false
+    private var isPortraitOnly = false
     
     //LOCAL CONFIG
     private let configuration: GalleryConfiguration

    
    public override func viewDidLoad() {
        super.viewDidLoad()
        
        configureHeaderView()
        configureFooterView()

    private var closeButton: UIButton?
    public var headerView: UIView?
    public var footerView: UIView?
    private var applicationWindow: UIWindow? {
        return UIApplication.sharedApplication().delegate?.window?.flatMap { $0 }
    }
    
    //DATA
    private let viewModel: GalleryViewModel
