fix tab-problems for pages with more than one .custom.dropdown

Works only in one direction