Slow body magnetohydrodynamic waves in solar photospheric flux tubes with inhomogeneous equilibria