Fix for converting slice number from double to unsigned int
Signed-off-by: Miklos Espak <m.espak@ucl.ac.uk>