         CGContextSetFillColorWithColor(ctx, slider.trackHighlightTintColor.CGColor)
         let lowerValuePosition = CGFloat(slider.positionForValue(slider.lowerValue))
         let upperValuePosition = CGFloat(slider.positionForValue(slider.upperValue))
-        let rect = CGRect(x: lowerValuePosition, y: 0.0, width: upperValuePosition - lowerValuePosition, height: bounds.height)
+        let rect = CGRect(x: lowerValuePosition, y: sliderY, width: upperValuePosition - lowerValuePosition, height: Constants.thickness)
         CGContextFillRect(ctx, rect)
     }
 }

        layer.addSublayer(upperThumbLayer)
    }
    
    func updateLayerFrames() {
        CATransaction.begin()
        CATransaction.setDisableActions(true)

            return
        }
        
        let sliderY = CGRectGetMidY(bounds) - Constants.thickness / 2
        
        // Clip
        let cornerRadius = bounds.height * slider.curvaceousness / 2.0
        let path = UIBezierPath(roundedRect: CGRectMake(bounds.origin.x, sliderY, bounds.size.width, Constants.thickness), cornerRadius: cornerRadius)
        CGContextAddPath(ctx, path.CGPath)
        
        // Fill the track
