Added a lock/unlock for the sliders and an update gravity function