avast is not designed to work as on-demand only (not resident).
If your computer is slow, try seeing which other programs are running, if you can, buy a little more RAM, and set avast Standard Shield level to Normal (not High).
Any other security program running?