Stable dynamics of spikes in solutions to a system of activator-inhibitor type