`BitSlice` or a sound way to implement one

I guess you might also want another 3 bits to indicate the starting bit position?