working slider and map on webpage