Locking slices prevents you from making changes accidentally, such as resizing or moving slices.
To lock all slices:
Choose View > Lock Slices.