this is the first version of arrayslices.pl