improve error message on slice deletion