write slice-header