Cache intial offset calculations for show and hide.