Two men jailed for drug possession