Move if statement one line lower to make it one block.
Complete rewrite of how the slider template is getting loaded.