Fixes err where next slide was showing a bit