How do you change the slice thickness and add it to a module panel?

How do you change the slice thickness and add it to a module panel?

Thanks!