added slider template loading function