Fix bug that was generating incorrect volume slicing of 4d-images.
Attempt to speed up network generation.