adding translate amount based on actual header height