Enhancing Slice-Wise Brain MRI Tasks using Self-Supervised and Auxiliary Learning