pin functions using position fixed due to different scroll behaviours in each browser