On the dimension of varieties of special divisors