wait seconds bug fixed in slide screen function