def get_slice(x_all, y_all, z_all, ct_all, N, shift):
    """ return a smaller slice of the whole timeslice

    :param x_all: The x-coordinates of the hits for the whole timeslice
    :type x_all: numpy ndarray of type numpy.float32

    :param y_all: The y-coordinates of the hits for the whole timeslice
    :type y_all: numpy ndarray of type numpy.float32

    :param z_all: The z-coordinates of the hits for the whole timeslice
    :type z_all: numpy ndarray of type numpy.float32

    :param ct_all: The ct values of the hits for the whole timeslice
    :type ct_all: numpy ndarray of type numpy.float32

    :param N: The number of hits that this smaller slice should contain
    :type N: int

    :param shift: The offset into the whole timeslice where this slice should start
    :type shift: int

    :returns: x,y,z,ct for the smaller slice
    :rtype: tuple(numpy ndarray of type numpy.float32)
    """
    x   = x_all[shift:shift+N]
    y   = y_all[shift:shift+N]
    z   = z_all[shift:shift+N]
    ct  = ct_all[shift:shift+N]
    return x,y,z,ct