Better slug function
Tests added