Synaptic patterns in neural network detecting oriented slabs