fixing num of panels