How to check line profile of all slice

Hello everyone, hope you are all doing well
i want to know how to check line profile of all CT scan slices together, not slice by slice.