on window resize panels honor the state of the toggle