added check for to many slices