made commands for moving through slices work on mac