adjusted size and position of panels