resizing the elements when left panel is resizing;accounting plot first version