resize panels for different viewports