Add spacers in your OSX dock

Run this command in the terminal to add a spacer

jitsejan@MBP $ defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'

and restart the dock by running

jitsejan@MBP $ killall Dock