I have an old low-end mountain bike that used to have a chronic problem with the rear wheel slipping in the drive side dropout. Problem turned out to be that the drive side dropout was tweaked and not quite parallel to the non-drive side. After straightening it out the wheel stopped slipping.