Add paing for slider

Added paging for slider
Added automatic switching for slider