Non-autonomous solitons in inhomogeneous nonlinear media with distributed dispersion