fixed slider bug by adding corresponding data