KLCI and ringgit close slightly firmer