code: format in slider
code: format in index