Role of molecular size in ratchet fractionation