hide related classes that are full or closed