added active slide variable