Optimized the program header's position when scrolling