Fix warnings in slideshow by using an int timerid