added functionality to sliding sections of the page
tweaks in spacing
refactored code