The number of panels is now defined in a simple array variable - this needs to become dependent on the width of the window.