fix slide height calculation