create slide toggle ui feature for note