correctly show/hide elements with multiple classes