Spacing happens when any dock application is reordered by the user. It is necessary to move it again to return to normal.(Spacing between gnome-terminal and gnome-photos)