fix tab gallery