add next and prev tag