Moving individual sprites by name

Hi There people,

I’m trying to make a gallery in as3.

The idee is having multiple thumbs and when you click one it gets bigger and the other thumbs move left or right;

Example:
[1][2][3][4][5][6][7][8]

When you click [5]

It becomes:
[1][2][3][4][5][6][7][8]

i’m having trouble moving the other thumbs,
hope someone can help me!

Source included, what i got so far!