set overlay size and position