Dynamic / automatic tabs

Hello everyone ,
one doubt I have 10 tabs I want to do that when I press tab number 3 the next 3 tab are shown automatically, now I have to slide the tabs to see the others how can it be done? Thanks in advance!