Synchronization of an ensemble of oscillators regulated by their spatial movement