fix request_slice() in c implementation to use configured number of slices
better initialization of memory, requesting of slices in python implementation