return number of moved slots