fix side effect introduce with list/expand buttons

hi,

this is a fix to prevent side effect with list / expand button.

In some cases `documentation` and `sandbox` div was hidden / shown, when not expected.