Open up Terminal and type the following commands to create dividers on the OSX dock.
// Left-hand side
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
// Right-hand side
defaults write com.apple.dock persistent-others -array-add '{tile-data={}; tile-type="spacer-tile";}'