A new calculation strategy to analyze the vibrational free energy of a slab and calculate the vibrational contribution of the surface free energy