Text this: Transverse-layer partitioning of artificial neural networks for image classification