Five Islamists jailed for up to eight years