Create trackbar code