To update the width and height of the plots