separate prev and next