Add js logic to manipulate index <p>s on resize