adjust slider width
add legend div, hide button if finish loading