move the prev and next link