fixed slider overflow (buggy version)