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

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

        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: sliderY, width: upperValuePosition - lowerValuePosition, height: Constants.thickness)
        CGContextFillRect(ctx, rect)
    }
}
