createa slider for thumbnail