Set up the correct height for slider elements.