The reason your zucchini slice sinks in the middle, is most likely because the eggs have been over mixed, creating air bubbles in the batter. Try mixing your eggs less next time!