split tabs into gTab classes