updating image position for mobiles properly