updating script to calculate hero image margin top