Ireland-based dairy and sports nutrition group Glanbia has agreed to buy SlimFast for US$350m from owners KSF Holdings and HNS Intermediate Corp.