Help with rollover effect

Basicly on the stage you have 4 buttons, with a slider at the right hand side. The slider is just a black line. when you rollover a button, the slider moves over the button, revealing something underneath (like a mask). So if the slider is on the right of the button (coming toword it from right to left), it will stop on the buttons left side, and vice - versa. Is this making sence? Ive made 2 pictures that show what i mean. Could some1 please help me make this effect!

Thanks!

P.S. the first picture is bfore youve rolldover anything, the second is after you have rolledover button no. 1