custom scaling of panels