Use slice instead of data when checking whether a step is selected