fix slide formula