parsing link header to display next and previous links