Fixing primary tabs on galleries' menu