Fixed a bug where it was crashing after going back to home screen from the slideshow