Preventable interaction of attosecond soliton in an inhomogeneous lossy fiber: Application to dispersion and nonlinearity management