Use named returns for slices
Fix removal for first and last docs