Hide sidebar as late as possible