So alguns when it is masculine and algumas when it is feminine?
"Algum", "alguma" for singular, and "alguns", "algumas" for the plural.
Right. "Some" can also be conveyed by the plural indefinite articles "uns" and "umas".