Fix for batch sizing on slice() and Math.floor