grouping the sprites to avoid memory leak