Start Terminal.
Run command to create spacer:
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'Reload Dock:
killall DockRun the following commands below.
Close, re-open and re-run commands in step 1 in Terminal to add extra spacers.