fix initial state of expanded divs

cc @jospoortvliet @kelleybrooks @karlitschek

fixes 1fc7a3bf5ebbb20e2f6b238abd2fb44e01e34d7e