SLIC implementation