listen event to reset the position of the array that is being shown