Gallery : Main tab button & slight looping bug