fixed bug in slice handling