fix a tiny bug
remove slice_buffer()
remove assertions

In curses, error messages of assertions are crabbed.
Let's remove.