private static int getSlice(int face, int arrayElem) {
        return Math.max(face, arrayElem);
    }
returns the slice from the face and the array index
@param face the face
@param arrayElem the array index
@return
jme3-core/src/plugins/java/com/jme3/texture/plugins/ktx/KTXLoader.java