Evolution of altruism under group selection in large and small populations in fluctuating environments