created js slider