Limit class size when editing free classes