To override the "ACF - Gallery" custom field, read here: How to override the "ACF - Gallery" custom field.