Make compile on 32bit

Slice index was failing on 32 bit.