Without seeing the JS responsible for the slider, it is impossible to say where you went wrong, but you should compare the mocked-up version (that works) with what you are actually getting (HTML source after page render) to see if there were any typos or other potential mistakes.