Bug862872, implement slice batching to reduce reflows