remove core-flex from mainContainer when mode == 'cover'