updating image position for mobiles