Alternation of up and down states at a dynamical phase-transition of a neural network with spatiotemporal attractors