@dohmatob , shouldn't you be passing the slicer to the get_cut_coords function?