could you not just add class directly onto the containers, which hides them?