STY: move coordinate slicing to its own submodule