The dependence of motion repulsion and rivalry on the distance between moving elements