scrolling and history fix for every slide