def compute_equal_space(available_size, all_elements_size, offset=0):
    """
        Function to return an equal space between elements
    """
    available_size -= offset
    total_content_size = sum(all_elements_size)
    dspace = (available_size - total_content_size) / float(len(
        all_elements_size) + 1)
    return dspace
