fix dynamic sliding calcs