Created macro for Z max projection