You might be searching for an accordion menu or an accordion category feature. In such a case, you've arrived at the right place.