N = ## number of layers on top
M = ## number of layers on bottom

filename = ## Path to data file

for layer_index in range(0, N+M):
	data = loadtxt(filename + '_layer_' + str(layer_index) + '.txt')
	imshow(data)