Counter varible problem

All I need is this. I want to tween thumb0 through thumb9, then thumb5 through thumb14. Bascially 10 at a time.
If the other button is pressed I need to tween the other way, thumb14 through thumb9 and so on.
Here is what I have so far. Im stuck on the counter varibles.


#include "lmc_tween.as"
//
var thumbCount:Number = -5;
var tweenCounter:Number = 0;
//
for (var i = 0; i<14; i++) {
    newBut = container.attachMovie("box", "thumb"+i, i);
    newBut.numText.text = i;
    if (i<10) {
        newBut._x = i*100;
    } else {
        newBut._x = 500+(i%5)*100;
    }
}
//
function slideMain() {
    var overlap:Number = .04;
    var count:Number = 0;
    for (z=thumbCount; z<tweenCounter; z++) {
        trace(z);
        if (frwrd == true) {
            endX = container["thumb"+z]._x-500;
        } else {
            endX = container["thumb"+z]._x+500;
        }
        container["thumb"+z].tween("_x", endX, 1, "easeOutCirc", overlap*count, enableBtns());
        count++;
    }
}
// this is kinda retarded because the buttons get enabled after the first tween is done. Not sure how to fix that
// I have tried to figure out how to get use it without disabling the buttons, but owell. 
function enableBtns() {
    // if z=tweenCounter or something
    btn1.enabled = btn2.enabled=true;
}
//
btn1.onRelease = function() {
    this.enabled = false;
    thumbCount += 5;
    tweenCounter += 10;
    frwrd = true;
    slideMain();
};
btn2.onRelease = function() {
    this.enabled = false;
    thumbCount -= 5;
    tweenCounter -= 10;
    frwrd = false;
    slideMain();
};