             countOfCards = Int(dataSource.kolodaNumberOfCards(self))
             
             if countOfCards - currentCardIndex > 0 {
-                let countOfNeededCards = min(defaultCountOfVisibleCards, countOfCards - currentCardIndex)
+                let countOfNeededCards = min(countOfVisibleCards, countOfCards - currentCardIndex)
                 
                 for index in 0..<countOfNeededCards {
                     let actualIndex = UInt(index + currentCardIndex)

    public func revertAction() {
        if currentCardIndex > 0 && !animating {
            
            if countOfCards - currentCardIndex >= defaultCountOfVisibleCards {
                if let lastCard = visibleCards.last {
                    lastCard.removeFromSuperview()
                    visibleCards.removeLast()

    
    private(set) public var currentCardIndex = 0
    private(set) public var countOfCards = 0
    public var countOfVisibleCards = defaultCountOfVisibleCards
    private var visibleCards = [DraggableCardView]()
    
    override public func layoutSubviews() {
