adds previous and next links after splitting