Fix bug with slider panel