exchange position of prev and next