Fix scrollspy with offset

the offset is not taken into account to calculate the position of the active element, so scrolling the target element, or clicking on an specific menu option, doesn't activate correctly some of the elements, usually the ones with less content, as they get overwritten by the neighbouring sections with more content