buffer: implement hexSlice
buffer: fix hexSlice and fill