Fix slice deletion. Update selected segments correctly. Resize canvas updates it.