I found ArrayPartition from RecursiveArrayTools.jl, which might solve my problem.
ArrayPartition
Edit: Jup, this does it.