Added array of margins for distribute, and ignoring views with 0 height