Fixed some bugs with refreshing slider