wrote checkbox slider from scratch