fixing bug where slider values would be wrong after changing the ratio or grid size

cleanup