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