Hide elements based on class instead of javascript