in reply to Question Regarding remove elements from a list
perhaps a less simple solution than using ie grep, but how about embedding the foreach in a for loop? during the foreach keep track of all items that are to be removed at the end of that foreach loop, ie in a separate array, and before the next instance of the for loop simply cut out the slices using (number of slice - number of items already removed in that instance of the for loop).