add util to pack/unpack bits by axis