add the form-group class conditionally

The form-group does not seem to play well with horizontal forms.
Merge pull request #2518 from greg0ire/native_collections_horizontal_forms

add the form-group class conditionally