         
         pageControl.translatesAutoresizingMaskIntoConstraints = false
         contentView.translatesAutoresizingMaskIntoConstraints = false
-        
-        if pageControlInside {
-            inside_constraints = NSLayoutConstraint.constraintsWithVisualFormat("V:|[content]|", options: [], metrics: nil, views: ["content": contentView])
-            inside_constraints.append(NSLayoutConstraint(item: pageControl, attribute: .Bottom, relatedBy: .Equal, toItem: contentView, attribute: .Bottom, multiplier: 1, constant: 0))
-            NSLayoutConstraint.activateConstraints(inside_constraints)
-        } else {
-            outside_constraints = NSLayoutConstraint.constraintsWithVisualFormat("V:|[content][page]|", options: [], metrics: nil, views: ["content": contentView, "page": pageControl])
-            NSLayoutConstraint.activateConstraints(outside_constraints)
-        }
+        NSLayoutConstraint.activateConstraints([
+            NSLayoutConstraint(item: pageControl, attribute: .Bottom, relatedBy: .Equal, toItem: contentView, attribute: .Bottom, multiplier: 1, constant: 0),
+            NSLayoutConstraint(item: pageControl, attribute: .CenterX, relatedBy: .Equal, toItem: self, attribute: .CenterX, multiplier: 1, constant: 0)])
+        NSLayoutConstraint.activateConstraints(NSLayoutConstraint.constraintsWithVisualFormat("V:|[content]|", options: [], metrics: nil, views: ["content": contentView]))
         NSLayoutConstraint.activateConstraints(NSLayoutConstraint.constraintsWithVisualFormat("H:|[content]|", options: [], metrics: nil, views: ["content": contentView]))
-        NSLayoutConstraint.activateConstraints([NSLayoutConstraint(item: pageControl, attribute: .CenterX, relatedBy: .Equal, toItem: self, attribute: .CenterX, multiplier: 1, constant: 0)])
         
         pan = UIPanGestureRecognizer(target: self, action: #selector(SDItemSelector.handlePan(_:)))
         pan.maximumNumberOfTouches = 1

    public weak var delegate: SDItemSelectorDelegate?
    
    private var _cache: [UIView?] = []
    
    @IBInspectable public var pageControlInside: Bool = true {
        didSet {
            if pageControlInside {
                NSLayoutConstraint.deactivateConstraints(outside_constraints)
                NSLayoutConstraint.activateConstraints(inside_constraints)
            } else {
                NSLayoutConstraint.deactivateConstraints(inside_constraints)
                NSLayoutConstraint.activateConstraints(outside_constraints)
            }
        }
    }
    
    @IBInspectable public var pageIndicatorTintColor: UIColor? {
        get {

        }
    }
    
    public override init(frame: CGRect) {
        contentView = UIView()
        super.init(frame: frame)
