revised linTranslate function so that there is no position absolute