on size update graph size