removed gaps between kernels within a batch