Fix problem with slider