If you want to separate items in your dock with blank space, enter this command:

defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'; killall Dock

 

Run this command multiple time to add more spaces.  To remove a space, drag it out of the dock like you would do for an application.