account for args when creating the slice

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>