fixes to slider code and litebox code