Updates values of tag and link positions; called by on-insert and on-delete. amt is negative for deletions.