[bit_slice] cleaned up code