change graph depth after drag