     
     override func layoutSubviews() {
         super.layoutSubviews()
-        print("layout subviews")
+        
+        let sliderPaddingTop:CGFloat = 25
+        let sliderPaddingBottom:CGFloat = 20
         
         backgroundView.frame = CGRectMake(0, titleHeight, frame.size.width, frame.size.height - titleHeight)
         backgroundView.backgroundColor = mainBackgroundColor

        handleLabel.text = "37"
        handleLabel.textAlignment = NSTextAlignment.Center
        handleLabel.textColor = UIColor.whiteColor()
        handleLabel.font = handleLabel.font.fontWithSize(12)
        handleLabel.backgroundColor = UIColor.clearColor()
        
        minLabel.frame = CGRectMake(0, backgroundView.frame.height-30, backgroundView.frame.width, 20)
        minLabel.text = textForPosition(min)
        minLabel.textAlignment = NSTextAlignment.Center
        minLabel.font = UIFont(name: minLabel.font.fontName, size: 15)
        minLabel.textColor = handleColor
        
        maxLabel.frame = CGRectMake(0, 20, backgroundView.frame.width, 20)
        maxLabel.text = textForPosition(max)
        maxLabel.textAlignment = NSTextAlignment.Center
        maxLabel.font = UIFont(name: maxLabel.font.fontName, size: 15)
        maxLabel.textColor = handleColor
        
        currentPosLabel.frame = CGRectMake(handleView.frame.width, handleView.frame.origin.y + handleHeight/2, handleWidth/2, handleHeight)
        currentPosLabel.text = "37"
        currentPosLabel.textAlignment = NSTextAlignment.Center
        currentPosLabel.textColor = UIColor.whiteColor()
        currentPosLabel.font = handleLabel.font.fontWithSize(12)
        currentPosLabel.backgroundColor = tintColor
        currentPosLabel.alpha = 0.0
    }

        let newY = CGFloat(minPosition - positionFromMin * stepheight)
        
        if animated {
            UIView.animateWithDuration(0.3, animations: {
                self.handleView.frame.origin.y = newY - self.handleHeight/2
                self.sliderFillView.frame = CGRectMake(0 , CGFloat(newY) + self.handleHeight/2, self.sliderBackgroundView.frame.width, self.sliderBackgroundView.frame.height - self.handleView.frame.origin.y - self.handleHeight)
                self.currentPosLabel.frame = CGRectMake(self.handleView.frame.width, self.handleView.frame.origin.y + self.handleHeight/2, self.handleWidth/2, self.handleHeight)
