                     l.anchorPoint = CGPointMake(1.0, 0.5)
                     self.layer.addSublayer(l)
                     return l
-                }()
+                    }()
                 imgLayer.contents = img.CGImage
                 imgLayer.bounds = CGRectMake(0, 0, img.size.width, img.size.height)
                 _maxTrackImageLayer = imgLayer

        super.init(frame: frame)
        self.commonSetup()
    }

    required public init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        

            self.layer.setNeedsLayout()
        }
    }
    
    @IBInspectable public var thumbSize: CGFloat = defaultThumbSize {
        didSet {
            _thumbLayer.cornerRadius = self.thumbSize / 2.0
            _thumbLayer.bounds = CGRectMake(0, 0, self.thumbSize, self.thumbSize)
            self.invalidateIntrinsicContentSize()
        }
    }
    
    @IBInspectable public var centerDotSize: CGFloat = defaultCenterDotSize {
        didSet {
            _centerDotLayer.cornerRadius = self.centerDotSize / 2.0
            _centerDotLayer.bounds = CGRectMake(0, 0, self.centerDotSize, self.centerDotSize)
            self.invalidateIntrinsicContentSize()
        }
    }
    
    @IBInspectable public var thumbIcon: UIImage? = nil {
        didSet {
            _thumbIconLayer.contents = self.thumbIcon?.CGImage
        }
    }
    
    //just variables
    
    public var selectedBorderColor: UIColor? {
        set{
