fixed slider bug