updated graph_slice each iteration added