Solitary waves in the model of active media, taking into account relaxing effects