ensure slugs are not too long