slider self code added, bloodsugar layout