The current version of sits_slic() is slow and fails to work in some circumstances. The function has its own memory management which conflicts with that of the main sits algorithm. It would be good to improve it with a version that would be consistent with the way sitsdoes classification, using blocks and parallel processing.