get_total_thickness function

get total thickness