Fixed slider bug, changed histogram rendering to take screen edge into account