prev and next on same line