Convert slice_size parameter to integer before use
Rudimentary directory changing