Have you read Sheldon's article (or bit) about ghost shifting? It could be frame flex; one fix may be to take and use cable all the way to the derailler--no exposed wire.
However, you say it "slips". That sounds to me like worn chain. Have you measured the chain stretch? If it is stretched, the freewheel is probably worn out. Or, the freewheel may be worn period.