Don't use expanding foam. It will lift the tub. Try getting cement or thin set under the unsupported section.