 
     open var currentIndex: Int {
         let valueRange = maximumValue - minimumValue
-        let range = Int(((value - minimumValue)/valueRange) * Float(kNumStacks))
-        let currentIndex = min(range, kNumStacks-1)
+        let range = Int(((value - minimumValue)/valueRange) * Float(numberOfStacks))
+        let currentIndex = min(range, numberOfStacks-1)
         return currentIndex
     }
 

            }
        }
    }
    var _index: Int = 0
    var _value: Float = 0.0

    public var movieSliderDelegate: MovieSliderDelegate? = nil


    private let kThumbImageMargin : CGFloat = 10.0
    private let kThumbSize : CGFloat = 15.0
    private let kTrackHeight : CGFloat = 3.0
    private let kFrameGap: CGFloat = 2
    private var kFrameHeight: CGFloat {
        return minimumTrackImage(for: UIControl.State())!.size.height
    }

    public var stackMode: Bool = false {
        didSet {
            if stackMode != oldValue {
