Dynamic switching of lateral inhibition spatial patterns