def splice_data(data: str, width: int, height: int) -> list[str]:
    """Splice a data chunk into a number of layers

    :param data: Image pixels
    :param width: Image width in pixels
    :param height: Image height in pixels
    :return: List of layer of pixels
    """
    layer_length = width * height
    assert 0 == len(data) % layer_length
    layers = list()
    for i in range(0, len(data), layer_length):
        layers.append(data[i:i + layer_length])
    return layers