How to call slider by custom code